package cn.minhx.domain.strategy.service.rule.chain;

/**
 * 抽奖策略责任链，模板方法
 *
 * @author min
 */
public abstract class AbstractLogicChain implements ILogicChain {

    private ILogicChain next;


    @Override
    public ILogicChain next() {
        return next;
    }

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    /**
     * 由具体链自身提供其处理哪种抽奖策略
     * @return ruleModel
     */
    protected abstract String ruleModel();

}
